package com.butang.Mapper;

import com.butang.pojo.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: UserMapper
 * Package: com.butang.Mapper
 * Description:
 *
 * @Author BuTang
 * @Create 2023/7/5 17:54
 * @Version 1.0
 */
@Mapper
public interface UserMapper {
    @Delete("delete from emp where id = #{ id }")
    public void delete(Integer id);

    @Insert("insert into emp  (#{username} ,#{name},#{gender},#{image},#{job},#{entryDate},#{createTime},#{updateTime})")
    public void insert(Emp emp);
}
